const icsGenFormatter=function(){if(navigator.userAgent.indexOf("MSIE")>-1&&-1==navigator.userAgent.indexOf("MSIE 10"))return void console.log("Unsupported Browser");const e=-1!==navigator.appVersion.indexOf("Win")?"\r\n":"\n",n=[],o=["BEGIN:VCALENDAR","VERSION:2.0"].join(e),t=`${e}END:VCALENDAR`;return{events:()=>n,calendar:()=>o+e+n.join(e)+t,addEvent(o,t,d,i,r){if(void 0===o||void 0===t||void 0===d||void 0===i||void 0===r)return!1;const a=["BEGIN:VEVENT","STATUS:CONFIRMED","UID:1634822843addeventcom","SEQUENCE:0",`DTSTART:${i}`,`DTEND:${r}`,`SUMMARY:${o}`,`DESCRIPTION:${t}`,`LOCATION:${d}`,"BEGIN:VALARM","TRIGGER:-PT15M","ACTION:DISPLAY","DESCRIPTION:Reminder","END:VALARM","TRANSP:OPAQUE","END:VEVENT","END:VCALENDAR"].join(e);return n.push(a),a},download(d,i){if(n.length<1)return!1;const r=o+e+n.join(e)+t,a=`data:text/calendar;charset=utf8,${escape(r)}`,E=document.createElement("a");E.href=a,E.style="display:none",E.download="James-Smith-Academy.ics",document.body.appendChild(E),E.click(),document.body.removeChild(E)}}};"function"==typeof define&&define.amd?define("icsFormatter",[],(()=>icsGenFormatter())):"object"==typeof module&&module.exports?module.exports=icsGenFormatter():this.myModule=icsGenFormatter();